import request from '@/utils/request'

export function findAllStrategylistPage(page) {
  return request({
    url: '/findAllStrategylistPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        glmc: page.pd.glmc
      },
      showCount: page.showCount,
      totalPage: 0,
      totalResult: 0
    }
  })
}

export function getDictPgListPage(page) {
  return request({
    url: '/getDictPgListPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        zdbh: page.pd.zdbh,
      },
      showCount: 9999,
      totalPage: 0,
      totalResult: 0
    }
  })
}

export function addStrategy(params) {
  return request({
    url: '/addStrategy',
    method: 'post',
    data:params,
  })
}

export function updateStrategy(params) {
  return request({
    url: '/strategy',
    method: 'post',
    data:params,
  })
}
export function findStrategyById(params) {
  return request({
    url: '/findStrategyById',
    method: 'post',
    data:params,
  })
}

export function delStrategy(params) {
  return request({
    url: '/delStrategy',
    method: 'post',
    data:params,
  })
}



